<template>
	<view>
		<web-view :src="url1"></web-view>
	</view>
</template>
<script>
	import {
		a
	} from "@/api/user.js"
	export default {

		data() {
			return {
				webviewStyles: {
					progress: {
						color: '#FF3333'
					}
				},
				url1: "",
				// 提交的流水和金额
				aliPay: {
					traceNo: "",
					totalAmount: 0.0	
				},
			}
		},
		onLoad(options) {
		        var traceNo=options.traceNo
						var totalAmount=options.totalAmount
						this.url1="http://localhost:8877/alipay/pay?subject=收购阿里&traceNo=" +
						        traceNo + "&totalAmount=" + totalAmount
		    },
		methods: {
			a1() {
				var data = {
					subject: "1111",
					traceNo: this.aliPay.traceNo,
					totalAmount: this.aliPay.totalAmount,
					
				};
				this.url1="http://localhost:8877/alipay/pay?subject=收购阿里&traceNo=" +
                this.aliPay.traceNo + "&totalAmount=" + this.aliPay.totalAmount
			

			},
		},
		// 计算属性
		computed: {

		},
		
	}
</script>